﻿#ifndef TEACHERMENU_H
#define TEACHERMENU_H

#include <QDialog>
#include <QStandardItemModel>
#include "infoteacher.h"
#include "fileoperator.h"
#include "modelset.h"
#include "teachersubmitcourse.h"
namespace Ui {
class teacherMenu;
}

class teacherMenu : public QDialog
{
    Q_OBJECT

public:
    explicit teacherMenu(QWidget *parent = nullptr);
    ~teacherMenu();
    void getLoginId(QString loginId);

    void setTeaObject();
private slots:
    void on_btn_close_clicked();

    void on_btn_check_myinfo_clicked();

    void on_btn_check_student_info_clicked();

    void on_btn_check_mycourse_clicked();

    void on_btn_submit_course_clicked();

    void on_btn_quit_clicked();

    void on_btn_modify_password_clicked();

    void on_btn_confirm_clicked();

    void sortView(int a);
private:
    Ui::teacherMenu *ui;
    QStandardItemModel *model;
    fileOperator *op;
    teacherInfo *teaInfo;
    QString loginId;
    modelSet *setM;
    teacherSubmitCourse *submitCourse;
    courseInfo *waitToLoadCourse;
    bool flag=0;
};

#endif // TEACHERMENU_H
